import API from "@/utils/request";

export function getPageLog({pageNum,pageSize,name}){
    return API.get('/log/page',{
        params:{
            pageNum,
            pageSize,
            name
        }
    })
}

export function getAllLog(){
    return API.get('/log')
}

export function getLogById(id){
    return API.get(`/log/${id}`)
}

export function saveLog(log){
    return API.post('/log',log)
}

export function updateLog(log){
    return API.put('/log',log)
}

export function removeLog(id){
    return API.delete(`/log/${id}`)
}